import { Map } from 'leaflet'

/**
 * @ClassName LeafletMapStore
 * @Description Leaflet地图中数据存储
 * @Author xuyizhuo
 * @Date 2023/11/18 17:37
 */
export default class LeafletMapStore {
    private static map: Map

    /**
     * 存储Leaflet地图对象
     * @param {Map} map
     */
    static setMap(map: Map) {
        this.map = map
    }

    /**
     * 获取Leaflet地图对象
     * @returns {Map}
     */
    static getMap() {
        return this.map
    }
}
